<template>
  <button @click="$emit('click')" class="btn" :class="'btn-' + type + ' ' + 'btn-' + size">
    <bs-icon v-if="icon" :name="icon"></bs-icon>
    <slot></slot>
  </button>
</template>
<script setup>
import { defineEmits, defineProps } from "vue";
defineProps(["type", "size", "icon"]);
defineEmits(["click"]);
// vue 单文件组件 SFC（single file component）
/* export default {
  props: ["type", "size", "icon"],
  emits: ["click"],
  setup() { },
}; */
</script>